/**
 * 
 */
package com.cosmetics.groupware.action.base.user;

import com.cosmetics.groupware.dao.base.UserDao;
import com.cosmetics.groupware.model.base.user.User;
import com.opensymphony.xwork2.ActionSupport;

/**
 * description :
 * @author     : dreams
 * @Date       : 2011. 7. 10.
 * @Version    :   
 * <pre>
 * com.cosmetics.groupware.action.base |_ UserCreateAction.java
 * </pre>
 */
public class UserCreateAction extends ActionSupport {

	/**
	 * description : 
	 */
	private static final long serialVersionUID = 1L;

	private User user;
	private UserDao userDao;
	/**
	 * description : user 반환
	 * @return the user
	 */
	public User getUser() {
		return user;
	}
	/**
	 * description : user 설정
	 * @param user the user to set
	 */
	public void setUser(User user) {
		this.user = user;
	}
	/**
	 * description : userDao 반환
	 * @return the userDao
	 */
	public UserDao getUserDao() {
		return userDao;
	}
	/**
	 * description : userDao 설정
	 * @param userDao the userDao to set
	 */
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	
	public String execute() throws Exception {
		userDao.create(user);
		return "success";
	}
	
}
